from python_ai.common.xcommon import sep
import jieba

f = "中华人民共和国的核心领导是以刁主席为核心的中国共产党挡中央！"

sep('cut cut_all=True')
sl = jieba.cut(f, cut_all=True)
print(type(sl))
print(f'全模式切分：{"/".join(sl)}')

sep('cut cut_all=False')
sl = jieba.cut(f, cut_all=False)
print(type(sl))
print(f'精确模式切分：{"/".join(sl)}')

sep('cut_for_search')
sl = jieba.cut_for_search(f)
print(type(sl))
print(f'搜索模式切分：{"/".join(sl)}')

sep('lcut cut_all=True')
sl = jieba.lcut(f, cut_all=True)
print(type(sl))
print(f'全模式切分：{"/".join(sl)}')

sep('lcut cut_all=False')
sl = jieba.lcut(f, cut_all=False)
print(type(sl))
print(f'精确模式切分：{"/".join(sl)}')
